/**
 * Created by vincent on 2017/9/29.
 */
moduleResource.factory('DynamicHtmlResource', function (CambioResource, $$CambioConfig) {
    return CambioResource($$CambioConfig.RESOURCE_URL + '/dynamicHtml', {}, {
        queryList: {
            url: $$CambioConfig.RESOURCE_URL + '/dynamicHtml/queryHtmlList' + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        findById: {
            url: $$CambioConfig.RESOURCE_URL + '/dynamicHtml/findById/:dynamicHtmlId',
            method: 'GET'
        },
        findByKey: {
            url: $$CambioConfig.RESOURCE_URL + '/dynamicHtml/findByKey',
            isArray: true,
            method: 'POST'
        },
        add: {
            url: $$CambioConfig.RESOURCE_URL + '/dynamicHtml/add',
            method: 'POST'
        },
        update: {
            url: $$CambioConfig.RESOURCE_URL + '/dynamicHtml/update',
            method: 'PUT'
        },
        delete: {
            url: $$CambioConfig.RESOURCE_URL + '/dynamicHtml/delete',
            method: 'POST'
        },
        reload: {
            url: $$CambioConfig.FILE_RESOURCE_URL + '/dynamicHtml/refresh',
            method: 'POST'
        },
        reloadAll: {
            url: $$CambioConfig.RESOURCE_URL + '/dynamicHtml/reloadAll',
            method: 'POST'
        }
    });
});